package net.huashitong.ssydt.provider.task.service;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.base.service.AbstractLongService;
import net.huashitong.ssydt.provider.task.mapper.SsTaskMedalMapper;
import net.huashitong.ssydt.task.entity.SsTaskMedal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2018.01.11
 */
@Service
@Transactional
public class SsTaskMedalServiceImpl extends AbstractLongService<SsTaskMedal> implements SsTaskMedalService {

    private SsTaskMedalMapper mapper;

    @Autowired
    public SsTaskMedalServiceImpl(SsTaskMedalMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    protected LongMapper<SsTaskMedal> getLongMapper() {
        return this.mapper;
    }

    @Override
    public List<SsTaskMedal> findSequenceAsc() {
        return this.mapper.findSequenceAsc();
    }
}
